// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import Layout from '@/layout'

const operationRouter = {
  path: '/operation',
  component: Layout,
  redirect: '/operation/siteConfig',
  name: 'Operation',
  meta: {
    title: '系统设置',
    icon: 'clipboard',
    roles: ['admin']
  },
  children: [
    {
      path: 'picture',
      name: 'picture',
      component: () => import('@/views/maintain/picture'),
      meta: {
        title: '文件库',
        icon: 'clipboard'
      },
      hidden: false
    },
    {
      path: 'dataConfig',
      name: 'DataConfig',
      component: () => import('@/views/systemSetting/dataConfig'),
      meta: {
        title: '公用数据配置',
        icon: 'clipboard',
        roles: ['admin']
      },
      children: [
        {
          path: 'dataConfigPhone',
          component: () => import('@/views/systemSetting/dataConfig/dataConfigPhone'),
          name: 'dataConfigPhone',
          meta: { title: '手机品牌型号', icon: '' }
        },
        {
          path: 'dataConfigOther',
          component: () => import('@/views/systemSetting/dataConfig/dataConfigOther'),
          name: 'dataConfigOther',
          meta: { title: '其他公用数据', icon: '' }
        },
        {
          path: 'dataConfigFile',
          component: () => import('@/views/systemSetting/dataConfig/dataConfigFile'),
          name: 'dataConfigFile',
          meta: { title: '文件库目录', icon: '' }
        },
      ]
    },
    // {
    //   path: 'dataConfig',
    //   component: () => import('@/views/systemSetting/dataConfig'),
    //   name: 'dataConfig',
    //   meta: { title: '公用数据配置', icon: '' }
    // },

  ]
}

export default operationRouter  //collate
